package priv.yiyuan.example.design.wrapper;

/**
 * 魔法卷轴
 * <p>
 * 装饰器模式-具体装饰器
 *
 * @author YiYuan
 * @data 2025/9/2
 * @apoNote
 */
public class ScrollDecorator extends EquipmentDecorator {

    public ScrollDecorator(GameCharacter character) {
        super(character);
    }

    @Override
    public int getAttack() {
        return super.getAttack() + 10;
    }

    @Override
    public int getDefense() {
        return super.getDefense() + 10;
    }

    @Override
    public String getDescription() {
        return super.getDescription() + ", 学习魔法卷轴";
    }
}
